projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
31e89b4
)
Render background of a GtkImage
author
Paolo Borelli
<pborelli@gnome.org>
Mon, 23 Jan 2012 20:00:38 +0000
(21:00 +0100)
committer
Paolo Borelli
<pborelli@gnome.org>
Mon, 23 Jan 2012 20:03:05 +0000
(21:03 +0100)
Useful to e.g. style the bg color of a symbolic icon
gtk/gtkimage.c
patch
|
blob
|
history
diff --git
a/gtk/gtkimage.c
b/gtk/gtkimage.c
index 45a8bba3a75e70ce9a90c455d86c66b94279f88b..8551149bfd406ecee50124eec0309587c76dddcb 100644
(file)
--- a/
gtk/gtkimage.c
+++ b/
gtk/gtkimage.c
@@
-1396,6
+1396,7
@@
gtk_image_draw (GtkWidget *widget,
x = floor ((gtk_widget_get_allocated_width (widget) - width) * xalign);
y = floor ((gtk_widget_get_allocated_height (widget) - height) * yalign);
+ gtk_render_background (context, cr, x, y, width, height);
gtk_render_frame (context, cr, x, y, width, height);
x += border.left;